An Empirical Study of Test Generalization in NUnit Framework
ثبت نشده
چکیده
Owing to the significance of unit testing in software development life cycle, there are several existing approaches on automating the generation of conventional unit tests. However, these approaches often fail to generate a minimal set of test cases for ensuring a high code coverage and manually writing such test cases is a labor-intensive task. To address these preceding issues with conventional unit tests, parameterized unit tests (PUT) are introduced where programmers can describe the expected behavior or specifications using symbolic values. Pex, an automatic test generation tool, accepts these PUTs and generates a minimal set of conventional unit tests that ensure a high code coverage. This process of converting conventional unit tests into PUTs is referred as test generalization. In our empirical study, we used an open source C# project called NUnit to study the benefits of test generalization. In our study, we found that the test generalization has increased the block coverage by 9.68% (on average) and also detected 7 new defects.
منابع مشابه
An Empirical Study of Test Generalization in NUnit Framework
Owing to the significance of unit-testing in software development life-cycle, there are several existing approaches on automating the generation of conventional unit tests. However, these approaches often fail to generate a set of test cases that can ensure a high code coverage and manually writing such test cases is a labor-intensive task. To address these preceding issues with conventional un...
متن کاملEstablishing an Argument-Based Validity Approach for a Low-Stake Test of Collocational Behavior
Most of the validation studies conducted across varying test application contexts are usually framed within the traditional conceptualization of validity and therefore lack a comprehensive framework to focus on test score interpretations and test score use. This study aimed at developing and validating a collocational behavior test (CBT), drawing on Kane's argument-based approach to validity. F...
متن کاملDrawkcab Gnimmargorp: Test-Driven Development with FUTS
One of the practices of Extreme Programming is Test-Driven Development (TDD), also known as Test-First Design. This style of development emphasizes an approach that is backwards to many programmers: writing tests before working code. Interestingly, this approach has found application in both agile methodologies and validation-intensive programming environments. TDD involves creating automated a...
متن کاملNUnit – Test-Driven Development with .NET
NUnit is a framework that serves to generate component and module tests for .NET platforms. This framework acts as support in the test-driven development and enhances the quality of codes by quickly isolating errors in the source code. This in effect minimizes additional the cost of subsequent error search. We aim at highlighting the advantages and limitations of NUnit. We will present and exem...
متن کاملInvariant Empirical Bayes Confidence Interval for Mean Vector of Normal Distribution and its Generalization for Exponential Family
Based on a given Bayesian model of multivariate normal with known variance matrix we will find an empirical Bayes confidence interval for the mean vector components which have normal distribution. We will find this empirical Bayes confidence interval as a conditional form on ancillary statistic. In both cases (i.e. conditional and unconditional empirical Bayes confidence interval), the empiri...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008